home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
ftn
/
abs.z
/
abs
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
AAAABBBBSSSS((((3333FFFF)))) AAAABBBBSSSS((((3333FFFF))))
NNNNAAAAMMMMEEEE
abs, iabs, dabs, qabs, cabs, zabs, cqabs, iiabs, jiabs - FORTRAN absolute
value
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
iiiinnnntttteeeeggggeeeerrrr iiii1111,,,, iiii2222
rrrreeeeaaaallll rrrr1111,,,, rrrr2222
ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn ddddpppp1111,,,, ddddpppp2222
rrrreeeeaaaallll****11116666 qqqqpppp1111,,,, qqqqpppp2222
ccccoooommmmpppplllleeeexxxx ccccxxxx1111,,,, ccccxxxx2222
ddddoooouuuubbbblllleeee ccccoooommmmpppplllleeeexxxx ddddxxxx1111,,,, ddddxxxx2222
ccccoooommmmpppplllleeeexxxx****33332222 qqqqxxxx1111,,,, qqqqxxxx2222
iiiinnnntttteeeeggggeeeerrrr****2222 iiiiiiii1111,,,, iiiiiiii2222
iiiinnnntttteeeeggggeeeerrrr****4444 jjjjiiii1111,,,, jjjjiiii2222
rrrr2222 ==== aaaabbbbssss((((rrrr1111))))
iiii2222 ==== iiiiaaaabbbbssss((((iiii1111))))
iiii2222 ==== aaaabbbbssss((((iiii1111))))
ddddpppp2222 ==== ddddaaaabbbbssss((((ddddpppp1111))))
ddddpppp2222 ==== aaaabbbbssss((((ddddpppp1111))))
qqqqpppp2222 ==== qqqqaaaabbbbssss((((qqqqpppp1111))))
qqqqpppp2222 ==== aaaabbbbssss((((qqqqpppp1111))))
ccccxxxx2222 ==== ccccaaaabbbbssss((((ccccxxxx1111))))
ccccxxxx2222 ==== aaaabbbbssss((((ccccxxxx1111))))
ddddxxxx2222 ==== zzzzaaaabbbbssss((((ddddxxxx1111))))
ddddxxxx2222 ==== aaaabbbbssss((((ddddxxxx1111))))
qqqqxxxx2222 ==== ccccqqqqaaaabbbbssss((((qqqqxxxx1111))))
qqqqxxxx2222 ==== aaaabbbbssss((((qqqqxxxx1111))))
iiiiiiii2222 ==== iiiiiiiiaaaabbbbssss((((iiiiiiii1111))))
iiiiiiii2222 ==== aaaabbbbssss((((iiiiiiii1111))))
jjjjiiii2222 ==== jjjjiiiiaaaabbbbssss((((jjjjiiii1111))))
jjjjiiii2222 ==== aaaabbbbssss((((jjjjiiii1111))))
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_a_b_s is the family of absolute value functions. _i_a_b_s returns the integer
absolute value of its integer argument. It accepts either integer*2 or
integer*4 arguments and the result is the same type. _d_a_b_s returns the
double-precision absolute value of its double-precision argument. _q_a_b_s
returns the real*16 absolute value of its real*16 argument. _c_a_b_s returns
the complex absolute value of its complex argument. _z_a_b_s returns the
double-complex absolute value of its double-complex argument. _c_q_a_b_s
returns the complex*32 absolute value of its complex*32 argument. _i_i_a_b_s
returns the integer*2 absolute value of its integer*2 argument. _j_i_a_b_s
returns the integer*4 absolute value of its integer*4 argument. The
PPPPaaaaggggeeee 1111
AAAABBBBSSSS((((3333FFFF)))) AAAABBBBSSSS((((3333FFFF))))
generic form _a_b_s returns the type of its argument.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
floor(3M).
CCCCAAAAVVVVEEEEAAAATTTT
In two's-complement integer (integer*2 or integer*4) representation the
absolute value of the negative integer with largest magnitude is
undefined. Some implementations trap this error, but others simply
ignore it.
PPPPaaaaggggeeee 2222